Skip to content

Update authentication keys #102

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 16, 2025
Merged

Update authentication keys #102

merged 2 commits into from
Jan 16, 2025

Conversation

v9n
Copy link
Member

@v9n v9n commented Jan 15, 2025

Fix #97

@v9n v9n changed the base branch from main to add-secrets January 15, 2025 19:07
Copy link
Member

@chrisli30 chrisli30 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good but I left a comment.

@@ -51,7 +51,7 @@ const (
func RunWithConfig(configPath string) error {
nodeConfig, err := config.NewConfig(configPath)
if err != nil {
panic(fmt.Errorf("failed to parse config file: %w\nMake sure %s is exist and a valid yaml file %w.", configPath, err))
panic(fmt.Errorf("failed to parse config file: %s\nMake sure it is exist and a valid yaml file %w.", configPath, err))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let’s fix the capitalization now - the first letter of a sentence must be capitalized. Please fix other instances of fmt.Errorf() too.

Use Failed to, not failed to.

Do the below return return the message string to the gRPC client?

return fmt.Errorf("failed to parse config file: %s\nMake sure it is exist and a valid yaml file %w.", configPath, err)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is the error message when we run the aggregator from the command line during start-up. It isn't use for any gRPC client API.

@v9n v9n changed the base branch from add-secrets to main January 16, 2025 21:34
@v9n v9n merged commit 70ae78d into main Jan 16, 2025
4 checks passed
@v9n v9n deleted the update-authentication-keys branch January 16, 2025 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update authKey signature text to be more comprehensive
2 participants